package com.letoken.platform.repo.ecommerce.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电商冻结流水
 * </p>
 *
 * @author author
 * @since 2023-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ecommerce_freeze_history")
@ApiModel(value="EcommerceFreezeHistory对象", description="电商冻结流水")
public class EcommerceFreezeHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    @ApiModelProperty(value = "店铺id")
    private Integer mallId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "收入:1 支出:2")
    private Integer inOut;

    @ApiModelProperty(value = "用户购买冻结:0 商家退款解冻:1 订单完成解冻:2")
    private Integer type;

    @ApiModelProperty(value = "订单ID")
    private Integer orderId;

    @ApiModelProperty(value = "售后ID")
    private Integer afterId;

    @ApiModelProperty(value = "唯一流水号")
    private String seqNo;

    @ApiModelProperty(value = "变更之后余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "金额cap")
    @TableField("amount_cap")
    private BigDecimal amountCap;

    private LocalDateTime createTime;





}
